package cmd

// IIF evaluates a condition, if true returns the first parameter otherwise the second
func IIF[T any](condition bool, a , b T) T {
	if condition {
			return a
	}
	return b
}